< previous page page_767 next page >

Page 767
Obviously, with all these controls available, you need a way to keep them organized. This is the function of the Toolbox (see Figure A.6). This Toolbox contains buttons representing the controls that are available for use in your program. (A list of the basic set of Visual Basic 6 controls is contained in Table A.2.) Clicking one of the control ''tools" allows you to draw a control of that type on a form. Double-clicking a tool places a default-sized control of that type in the center of the current form. Clicking the Pointer tool in the upper-left of the Toolbox cancels a pending control-drawing function and restores the mouse pointer's normal functionality.
0767-01.jpg
Figure A.6
The basic control set is available when you first
Start Visual Basic. The Toolbox can be moved around
onscreen to a location that is convenient for you.
Table A.2 Standard Visual Basic Controls
Control NameFunction
PictureBoxDisplays a graphic image.
LabelDisplays text that the users cannot directly modify.
TextBoxDisplays text that the users can edit.
FrameProvides a method for grouping controls. (To group controls in a frame, select the frame with a single-click first; then draw a control in it.)
CommandButtonAllows the users to initiate a program action. Can include an icon, caption, and ToolTips.
CheckBoxDisplays or allows input of a two-part choice, such as Yes/No or True/False.
OptionButtonDisplays or allows a choice among multiple items. (Also known as a radio button.)
ComboBoxAllows the users to select an entry from a list or enter a new value.

continues

 
< previous page page_767 next page >